
/** 请求 */
const request = (option: HttpClientOptions) => uni.$http.create().setConfig({ ...option, showLoading: false }).request();


/** 阅读 */
export default {
	/** 生词本词库列表 */
	thesauruslist: (data: Record<string, string | number>) => {
		return request({ data, url: '/article-word/thesaurus-list' });
	},
	
	/** 生成AI内容 */
	intellectRed: (data: Record<string, any>) => {
		return request({ data, method: 'post', url: '/intellect-read' });
	},
	
	/** Topic */
	info: (data: Record<string, string | number>) => {
		return request({ data, url: '/intellect-read', rawResponse: true });
	},
	
	/** 智能阅读保存答案 */
	answer: (data: Record<string, any>) => {
		return request({ data, method: 'post', url: '/intellect-read/answer' });
	},
	
	/** 智能阅读结束练习 */
	submit: (data: Record<string, any>) => {
		return request({ data, method: 'post', url: '/intellect-read/submit' });
	},
	
	/** 阅读记录列表 */
	readlist: (data: Record<string, any>) => {
		return request({ data, url: '/article-exercise/read-list' });
	},
	
	/** 课程文章阅读记录列表 */
	courseArticleReadlist: (data: Record<string, any>) => {
		return request({ data, url: '/course-article/read-list' });
	},
	
	/** 文章段落 */
	courseArticleParagraphs: (data: Record<string, any>) => {
		return request({ data, url: '/course-article/paragraphs' });
	},
};